package com.wgt.vo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author wgt
 * @date 2018/1/4
 * @project new-start-blog
 */
@Getter
@Setter
@ToString
public class Response {
    private boolean success;
    private String message;
    private Object data;

    public Response(boolean secuess, String message) {
        this.success = secuess;
        this.message = message;
    }

    public Response(boolean secuess, String message, Object data) {
        this.success = secuess;
        this.message = message;
        this.data = data;
    }

    public boolean isSuccess(){
        return this.success;
    }
}
